<?php
namespace Home\Model;
use Think\Model;

class OrderModel extends Model {
  /**
   * @param int  $id 商户mid
   * @return array
   */
  public function getAllByMid($mid){
    return $this->where('mid='.$mid)->select();
  }

  /**
   * @param int  $id 用户uid
   * @return array
   */
  public function getAllByUid($uid){

    return $this->where('uid='.$uid)->select();
  }
}
